﻿@{string action = Request.RequestContext.RouteData.Values["action"].ToString();}
<ul class="nav nav-tabs bar_tabs sme-tabs" role="tablist">
    @if (action == "QuestionChecklist")
    {
        <li role="presentation" class="active">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistQuestionTab, "QuestionChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    else
    {
        <li role="presentation">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistQuestionTab, "QuestionChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    @if (action.Contains("DocumentChecklist"))
    {
        <li role="presentation" class="active" id="cm-cp-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistDocumentTab, "DocumentChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    else
    {
        <li role="presentation" class="" id="cm-cp-tab">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistDocumentTab, "DocumentChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    @if (action == "RuleChecklist")
    {
        <li role="presentation" class="active">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistRuleTab.ToUpper(), "RuleChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    else
    {
        <li role="presentation">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistRuleTab.ToUpper(), "RuleChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    @if (action == "HideDocChecklist")
    {
        <li role="presentation" class="active">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistHideTab.ToUpper(), "HideDocChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
    else
    {
        <li role="presentation">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.AdminChecklistHideTab.ToUpper(), "HideDocChecklist", "AdminChecklist", new { productid = Request.QueryString["productid"] }, null)
        </li>
    }
</ul>
